class Greeter {
    greeting: string;
    constructor(message: string) {
        this.greeting = message;
    }
    greet() {
        return "Hello, " + this.greeting;
    }
}


let greeter2: Greeter;
greeter2 = new Greeter("world");
console.log(greeter2.greet());


let Greeter5 = (function () {
    function Greeter5(message) {
        this.greeting = message;
    }
    Greeter5.prototype.greet = function () {
        return "Hello, " + this.greeting;
    };
    return Greeter5;
})();

let greeter;
greeter = new Greeter5("world");
console.log(greeter.greet());

